/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;
import pojo.QuiDinh;

/**
 *
 * @author User
 */
public class QuiDinhDAO extends AbstractDAO{
      public QuiDinhDAO() {
        super();
    }

    /**
     * Insert a new QuiDinh into the database.
     * @param info
     */
    public void create(QuiDinh info) throws DataAccessLayerException {
        super.saveOrUpdate(info);
    }


    /**
     * Delete a detached QuiDinh from the database.
     * @param info
     */
    public void delete(QuiDinh info) throws DataAccessLayerException {
        super.delete(info);
    }

    /**
     * Find an QuiDinh by its primary key.
     * @param id
     * @return
     */
    public QuiDinh find(Integer id) throws DataAccessLayerException {
        return (QuiDinh) super.find(QuiDinh.class, id);
    }

    /**
     * Updates the state of a detached QuiDinh.
     *
     * @param info
     */
    public void update(QuiDinh info) throws DataAccessLayerException {
        super.saveOrUpdate(info);
    }

    /**
     * Finds all QuiDinhs in the database.
     * @return
     */
    public List findAll() throws DataAccessLayerException{
        return super.findAll(QuiDinh.class);
    }
}
